package com.project.pojo.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
* @Description:   新增/修改收货地址入参类
* @Author:         wangzhiqiang
* @CreateDate:     2019-09-20 10:52
* @Version:        1.0
*/
@Data
@ApiModel(value = "UserAddressAddOrEditModel", description = "新增/修改收货地址入参类")
public class UserAddressAddOrEditModel {

    /**
     * 收货地址Id
     */
    @ApiModelProperty(value = "收货地址Id")
    private Long addressId;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    private Long baseUserId;

    /**
     * 联系人
     */
    @ApiModelProperty(value = "联系人")
    @NotBlank(message = "联系人不能为空!")
    private String name;

    /**
     * 联系方式
     */
    @ApiModelProperty(value = "联系方式")
    @NotBlank(message = "联系方式不能为空!")
    private String mobile;

    /**
     * 省份名称
     */
    @ApiModelProperty(value = "省份名称")
    @NotBlank(message = "省份不能为空!")
    private String provinceName;

    /**
     * 市（区）名称
     */
    @ApiModelProperty(value = "市（区）名称")
    @NotBlank(message = "市（区）不能为空!")
    private String cityName;

    /**
     * 县（区）名称
     */
    @ApiModelProperty(value = "县（区）名称")
    @NotBlank(message = "县（区）名称不能为空!")
    private String countyName;

    /**
     * 乡镇下级详情
     */
    @ApiModelProperty(value = "乡镇下级详情")
    @NotBlank(message = "详细地址不能为空!")
    private String town;

    /**
     * 全地址
     */
    @ApiModelProperty(value = "全地址（前端不用处理,后端会自动拼接）")
    private String allAdress;

    /**
     * 默认地址(1:默认,0：非默认)
     */
    @ApiModelProperty(value = "默认地址(1:默认,0：非默认)")
    private Integer defaultAdress = 0;

    /**
     * 经度
     */
    @ApiModelProperty(value = "经度")
    @NotNull(message = "请获取收货地址经纬度")
    private Double longitude;

    /**
     * 纬度
     */
    @ApiModelProperty(value = "纬度")
    @NotNull(message = "请获取收货地址经纬度")
    private Double latitude;

}
